package service;

import domain.Product;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by guo on 2017/10/23.
 */
public interface ProductService {
    List<Product> findAll();

    Boolean Add(String pname, Double market_price, Double shop_price, String pdesc) throws SQLException;

    Boolean Delete(int pid) throws SQLException;

    Boolean Update(String pname, Double market_price, Double shop_price, String pdesc,int pid) throws SQLException;
}
